<?php

	$fContent = file_get_contents("content.txt");
 	$fProd = file_get_contents("product.txt");
 	
 	$fContent = split("\n",$fContent);
 	$fProd = split("\n",$fProd);
 	
 	$final = "";
 	
 	for($i = 0 ; $i < sizeof($fProd); $i++) {
 		
 		$final = $final.$fProd[$i].",".$fContent[$i]."\n";
 	}
 	
 	$file = fopen("products.txt",'a');
 	fwrite($file,$final);
	fclose($file);

?>